package  com.barunsw.bwf.ems.neoarena.ne.tamms.pl;

/*
#define TGCFG_MAX_IOPORT        18
#define TGCFG_IOPORT_USR_STR    16
#define TGCFG_IOPORT_IP_STR     20
typedef struct {
    short           isExist;
    short           status;
    short           cls;
    short           dummy;
//  char            user[TGCFG_IOPORT_USR_STR];
    char            ipAddress[TGCFG_IOPORT_IP_STR];
} IoPortCfgData_M;

typedef struct {
    int             count;
    int             reason;
    IoPortCfgData_M data[TGCFG_MAX_IOPORT];
} M0501_MODE;
*/

public class M0501_MODE implements PLConstants {
	public static final int TGCFG_MAX_IOPORT = 18;
	public static final int TGCFG_IOPORT_USR_STR = 16;
	public static final int TGCFG_IOPORT_IP_STR = 20;

	public int count;
	public int reason;
	public IoPortCfgData_M[] data = new IoPortCfgData_M[TGCFG_MAX_IOPORT];

    public M0501_MODE(){
        for(int i=0; i<data.length; i++)
            data[i] = new IoPortCfgData_M();
    }
}
